package frog.lazy.framework.keeper.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.shiro.authc.AuthenticationToken;

import java.io.Serializable;
import java.util.Date;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class JwtTokenDTO implements AuthenticationToken {
    private static final long serialVersionUID = 5100277949218055719L;

    /**
     * 用户ID
     */
    private String appId;
    /**
     * 密码
     */
    private String password;
    /**
     * 坐标
     */
    private String coordinate;

    /**
     * 主机
     */
    private String ipHost;

    @Override
    public Object getPrincipal() {
        return appId;
    }

    @Override
    public Object getCredentials() {
        return password;
    }
}
